import { BaseEntity } from '../../base/entity/base';
import { Column, Entity, Index } from 'typeorm';

/**
 * 病历字段值
 */
@Entity('medical_record_value')
export class MedicalRecordValueEntity extends BaseEntity {
  @Index()
  @Column({ comment: '记录ID' })
  recordId: number;

  @Index()
  @Column({ comment: '模板字段ID' })
  templateFieldId: number;

  @Column({ comment: '字段值', type: 'text', nullable: true })
  fieldValue: string;
}
